<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
	<title>首页</title>
	<link rel="stylesheet" type="text/css" href="__HOME__/css/bootstrap.css">
	<link rel="stylesheet" type="text/css" href="__HOME__/css/weui.min.css">
	<link rel="stylesheet" href="__HOME__/css/jquery-weui.min.css">
	<link rel="stylesheet" type="text/css" href="__HOME__/css/style.css">

</head>
<body>
<div class="container-fluid">
	<div class="row" style="background-color:#000; padding:8px;">
		<div class="weui-search-bar" id="searchBar" style="background-color:#000; border:none;">
			<form class="weui-search-bar__form" style="background-color:#000;" action="{:url('index')}" method="post" >
				<div class="weui-search-bar__box" >
					<i class="weui-icon-search"></i>
					<input type="search" class="weui-search-bar__input" id="searchInput" name="key" placeholder="搜索" required="">
					<a href="javascript:" class="weui-icon-clear" id="searchClear" ></a>
				</div>
				<label class="weui-search-bar__label" id="searchText">
					<i class="weui-icon-search"></i>
					<span>搜索</span>
				</label>
			</form>
			<a href="javascript:" class="weui-search-bar__cancel-btn" id="searchCancel">取消</a>
		</div>
	</div>
	<div class="container-my">
		<div class="row paititle">
			<img src="__HOME__/images/nowpai.jpg">
		</div>
		<div class="row" >
			{volist name="now_list" id="vo" mod="2" }
			{eq name="mod" value="1"}
			<div class="col-sm-6 col-xs-6 pai-r">
				{else/}
				<div class="col-sm-6 col-xs-6 pai-l">
					{/eq}
					<div class="thumbnail">
						<a target="_blank" href="{:url('Jinpai/index')}?id={$vo.id}&is_auct={$vo.is_auct}"><img src="__PUBLIC__<?php if($vo['thumb1']) echo $vo['thumb1']; else echo '/static/home/images/myjpai.jpg'; ?>" style="height: 115px;width:100%;" alt="..."></a>
						<div class="caption pai-des">
							<p style="height: 45px; overflow: hidden;"><span class="pmaiz" style="color:red; border:1px solid red;"><?php if($vo['isend'] == 1) echo '拍卖结束'; else echo '拍卖中'; ?></span>&nbsp;&nbsp;<b class="pdestitle">{$vo.title}</b></p>
							<p>搜索编号：{$vo.id}</p>
							<p>拍卖时间：{$vo.pmhtime|date="m月d日H:i时",###}</p>
							<p class="text-center">起拍价格<span class="pdesprice">{$vo.start_price}</span>元</p>
						</div>
					</div>
				</div>
				{/volist}
			</div>

			<!-- 即将拍卖 -->
			<div class="row paititle">
				<img src="__HOME__/images/jiangpai.jpg">
			</div>
			<div class="row" >
				{volist name="soon_list" id="vo" mod="2" }
				{eq name="mod" value="1"}
				<div class="col-sm-6 col-xs-6 pai-r">
					{else/}
					<div class="col-sm-6 col-xs-6 pai-l">
						{/eq}
						<div class="thumbnail">
							<a target="_blank" href="{:url('Jinpai/index')}?id={$vo.id}&is_auct={$vo.is_auct}"><img src="__PUBLIC__<?php if($vo['thumb1']) echo $vo['thumb1']; else echo '/static/home/images/myjpai.jpg'; ?>" style="height: 115px;width:100%;" alt="..."></a>
							<div class="caption pai-des">
								<p style="height: 45px; overflow: hidden; width:auto;">
									<span class="pmaiz">
										<?php
													if($vo['is_auct'] ==1){
														 if($good_info['is_giveup']==1){
															echo '被放弃';
														 }else{
															 if($good_info['is_pause']==1){
																echo '拍卖中';
															 }else{
																//未开始或被暂停（这块儿不好区分）
																if($good_info['starttime'])//如果存在开始时间肯定是开始了的被暂停了
																	echo '被暂停';
																else
																	echo '等待开始';
															 }
														 }
												 }else{
													echo '拍卖中';
												 }
												?>
									</span>&nbsp;&nbsp;<b class="pdestitle">{$vo.title}</b></p>
								<p>搜索编号：{$vo.id}</p>
								<p>距离开始：{$vo.pmhtime|date="m月d日H:i时",###}</p>
								<p class="text-center">起拍价格<span class="pdesprice">{$vo.start_price}</span>元</p>
							</div>
						</div>
					</div>
					{/volist}
				</div>
			</div>
		</div>
	</div>
</div>
<script src="__HOME__/js/jquery.min.js"></script>
<script src="__HOME__/js/jquery-weui.min.js"></script>
<script src="__HOME__/js/swiper.min.js"></script>
<script src="__HOME__/js/city-picker.min.js"></script>
<script>
    $(document).ready(function () {
//            var josnstr='{$startstr}';
//            var arr=JSON.parse(josnstr);
//            function myrefresh(arr) {
//                window.setInterval(function () {
//                    var timestamp=Date.parse(new Date());
//                    timestamp=(timestamp/1000)+"";
//                    //alert(timestamp);
//                    if($.inArray(timestamp, arr)!=-1){
//                        window.location.reload();
//                    }
//                },1000);
//            }
//
//            $(function () {
//                //alert(arr);
//                if(arr){
//                    myrefresh(arr);
//                }
//            });
    });

</script>
</body>
</html>
